<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>个人信息</title>

	<link rel="shortcut icon" type="image/x-icon" href="../image/logo.png" />
	<link rel="stylesheet"  type="text/css" href="../layui/css/layui.css" />
	<link rel="stylesheet " type="text/css" href="../css/personal.css" />
</head>
<body>
<div class="digital">
	<!-- 头部 -->
	<div class="head">
		<div class="head-x ">
			<div class="head-x-css">
						<span class="layui-breadcrumb" lay-separator="|">
						 <a id="login_state" href="login.html">您好，请登录</a>
						  <a href="register.html">免费注册</a>
						  <a href="#">帮助中心</a>
						  <a href="#">客服</a>
						</span>

			</div>
		</div>
		<!-- 搜索框 -->
		<div class="head-s">
			<ul class="head-s-css">

				<li class="css-logo"><img src="../image/logo.png"/></li>
				<li class="css-text">
					<ul class="text-ul1">
						<li class="text"><input  id="content" type="text" name="title"   placeholder=" 请输入搜索内容"  class="text-input"/> </li>
						<li class="text-s">  <a  id="select"  class="text-btn" href="javascript:void(0)"  ><img src="../image/搜索.png"/></a>  </li>

					</ul>

					<ul class="layui-tab-title">
						<li class="layui-this"><a href="index.html"> 首页</a></li>
						<li><a   href="type.html#手机款式 "> 手机款式</a></li>
						<li><a   href="type.html#电脑整机"> 电脑整机</a></li>
						<li><a   href="type.html#平板类型"> 平板类型</a></li>
						<li><a   href="type.html#影音娱乐"> 影音娱乐</a></li>
						<li><a   href="type.html#摄影摄像"> 摄影摄像</a></li>
					</ul>
				</li>
				<!--头像-->
				<li class="css-touxiang"><a href="#"> <img id="touxiang" src="../image/个人中心.png"/>
					<p>个人中心</p>
				</a></li>

				<!-- 购物车 -->
				<li class="css-vehicle">
					<div class="vehicle-img"><a href="#"> <img src="../image/购物车.png"/> </a></div>
					<div  class="vehicle-text"> <span><a href="ShoppingCart.html">   我的购物车    </a></span></div>
				</li>


			</ul>

		</div>


	</div>


	<!-- 主体 --><!--样式修改 chen-->
	<div class="main">
		<iframe src="user.html"  id="main" style="width: 100%;height: 100%"></iframe>
	</div>


	<!-- 尾部 -->
	<div class="footer" style="height: 100px;color: #FFFFFF;text-align: center;line-height: 100px; ">
		Copyright © 2023 X Licensed
	</div>

</div>
</body>

<script src="../layui/layui.js"></script>
<script>

		function loadPage(page) {  document.getElementById('main').src = page;}


		layui.use('carousel', function() {
			var carousel = layui.carousel
					, laypage = layui.laypage
					, $ = layui.jquery;





			lg();
			//检测是否登录
			function lg() {


				//session里存储   uId
				$.get("../user",{op:"determine" },function (rs) {

					if(rs !=null){

						$("#login_state").text("在线！"); // 修改文本

					}

				},"json");


			}




			$("#select").click(function () {

				let pName = $("#content").val();
				if( pName!=null && ""!=pName){

					//session里存储   pName
					$.get("../prodDetails",{op:"cpName",pName:pName },function (rs) {


						if(rs!=null){
							window.location.href = 'index.html';
						}


					},"json");


				}
				else{

					alert('暂无相关商品！！！');
				}


			});






			//跳转用户个人信息页面
			$("#touxiang").click(function () {

				window.location.href = 'personal.html';

			});


		});




</script>

</html>
